#include <stdio.h>
int  main()
{
	int  x,y;
	scanf("%d %d",&x,&y);
	y==1314520-2*x;
	printf("%d %d",x,y);
	return 0;
}
